FROM node:8-alpine
RUN mkdir /opt/app -p
WORKDIR /opt/app

# 修复安装报错python路径找不到问题以及安装编译环境
RUN sed -i 's#dl-cdn.alpinelinux.org#mirrors.aliyun.com#g' /etc/apk/repositories && \
    apk update && apk add python2 build-base

COPY auto-loan-intserv-static/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY auto-loan-risk-static/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY auto-loan-static/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY bi-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY callcenter-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY collection-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY customer-service-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY growthcenter-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY ma-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY monitor-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY oms-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY pms-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY scf-management-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY tms-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY ucenter-web/package.json .
RUN npm install --registry=https://registry.npm.taobao.org

COPY worry-free-static/package.json .
RUN npm install --registry=https://registry.npm.taobao.org
